import request from '@/utils/request'
import { getSign } from '@/utils/request/sign.js'
export function getFileToken(data) {
  return request({
    url: '/sys-storage/file',
    method: 'post',
    data: data
  })
}

export function downloadFile(params) {
  return request({
    url: '/sys-storage/download',
    method: 'get',
    params: params
  })
}
export function changeFileG9s(groupToken, data) {
  return request({
    url: '/sys-storage/file/token',
    method: 'put',
    params: getSign({ groupToken }),
    data: data
  })
}
